/*
 * Copyright (c) ShaoxiongDu <Shaoxiong.dev@aliyun.com> 2021 all Rights Reserved
 */

package zh.codegym.task.task07.task0707;

import java.util.ArrayList;

/* 
那是什么类型的列表？
*/

public class Solution {
    public static void main(String[] args) throws Exception {
        //在此编写你的代码
        ArrayList<String> ArrayList = new ArrayList<String>();

        for (int i = 0; i < 5; i++) {
            ArrayList.add(String.valueOf(i));
        }
        System.out.println(ArrayList.size());
        for (int i = 0; i < ArrayList.size(); i++) {
            System.out.println(ArrayList.get(i));
        }
    }
}
